<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        function Stu(name){  //构造函数
            this.name = name;
        }
        Stu.prototype.say = function() {  // 原型对象
            console.log("说谎");
        }
        function Man(n) {
            Stu.call(this,n)  //类式继承
            this.age=19    //多态继承
        }
        Man.prototype = Stu.prototype;  //prototype 原型链继承
        let o2 = new Man("Ren")
        console.log(o2);
    </script>
</body>
</html>